<%-- 
    Document   : registroAdmPerfil
    Created on : 07/12/2012, 07:45:52 PM
    Author     : VANIE
--%>

<%@taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@taglib uri="http://richfaces.org/rich" prefix="rich"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<script type="text/javascript" src="<%=request.getContextPath()%>/js/generic.js"></script>
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/default.css"/>
<f:view>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title> Strategy <h:outputText value="Registro de Perfil"/></title>
</head>
<body>
<script type="text/javascript">
var formRegPerfil = 'formRegPerfil:';
</script>
<table align="center" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="450" valign="top">
<h:form id="formRegPerfil">
<a4j:jsFunction name="establecerPerfil" actionListener="#{registroAdmPerfil.establecerPerfil}" oncomplete="establishFocus('formRegPerfil','txtsugNombre')" reRender="panPrincipal"/>
<h:panelGrid id="panPrincipal">
    <h:panelGrid columns="4">
        <h:outputText value="Buscar Perfil" styleClass="lblcampotitulo8"/>
        <h:outputText value="" styleClass="lblcamporequerido10"/>
        <h:outputText value=":" styleClass="lblcampotitulo8"/>
        <h:panelGrid columns="4" id ="panBusqueda" cellpadding="0" cellspacing="0">
            <h:inputText id="txtsugNombre" size="50" value="#{registroAdmPerfil.nombreBuscar}" styleClass="txtcontrol8" onfocus="suggestionValueClean('formRegPerfil', 'txtsugNombre')"/>
            <rich:suggestionbox for="txtsugNombre" suggestionAction="#{registroAdmPerfil.consultarPerfil}" var="perfil" width="410" height="120" minChars="3" ajaxSingle="false"
                                border="1" shadowDepth="2" fetchValue="#{perfil.codPerfil}" ignoreDupResponses="true">
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="CÓDIGO" styleClass="lblcampotitulo8"/>
                    </f:facet>
                    <h:outputText value="#{perfil.codPerfil}" styleClass="sugseleccionitem100"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="NOMBRE PERFIL" styleClass="lblcampotitulo8"/>
                    </f:facet>
                    <h:outputText value="#{perfil.dscPerfil}" styleClass="sugseleccionitem300"/>
                </h:column>
                <a4j:support event="onselect" ajaxSingle="true" oncomplete="establecerPerfil(); ">
                    <f:setPropertyActionListener value="#{perfil.codPerfil}" target="#{registroAdmPerfil.codPerfil}"/>
                </a4j:support>
            </rich:suggestionbox>
            <f:verbatim> &nbsp;</f:verbatim>
            <a4j:commandButton value="* Nuevo" action="#{registroAdmPerfil.limpiarDatos}" reRender="formRegPerfil" styleClass="btncontrol80"/>
        </h:panelGrid>

        <h:outputText value="Descripción" styleClass="lblcampotitulo8"/>
        <h:outputText value="*" styleClass="lblcamporequerido10"/>
        <h:outputText value=":" styleClass="lblcampotitulo8"/>
        <h:inputText value="#{registroAdmPerfil.descripcion}" size="50" maxlength="100" styleClass="txtcontrol8"/>

        <h:outputText value="" styleClass="lblcampotitulo8"/>
        <h:outputText value="" styleClass="lblcamporequerido10"/>
        <h:outputText value="" styleClass="lblcampotitulo8"/>
        <h:panelGrid columns="4">
            <h:outputText value="Fundamentos" styleClass="lblcampotitulo8"/>
            <h:outputText value="" styleClass="lblcamporequerido10"/>
            <h:outputText value="Valor Mínimo" styleClass="lblcampotitulo8"/>
            <h:outputText value="Valor Máximo" styleClass="lblcampotitulo8"/>

            <h:outputText value="Boleo" styleClass="lblcampotitulo8"/>
            <h:outputText value=":" styleClass="lblcamporequerido10"/>
            <h:inputText value="#{registroAdmPerfil.funBolValMin}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>
            <h:inputText value="#{registroAdmPerfil.funBolValMax}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>

            <h:outputText value="Servicio" styleClass="lblcampotitulo8"/>
            <h:outputText value=":" styleClass="lblcamporequerido10"/>
            <h:inputText value="#{registroAdmPerfil.funSerValMin}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>
            <h:inputText value="#{registroAdmPerfil.funSerValMax}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>

            <h:outputText value="Recepción" styleClass="lblcampotitulo8"/>
            <h:outputText value=":" styleClass="lblcamporequerido10"/>
            <h:inputText value="#{registroAdmPerfil.funRecValMin}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>
            <h:inputText value="#{registroAdmPerfil.funRecValMax}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>

            <h:outputText value="Remate" styleClass="lblcampotitulo8"/>
            <h:outputText value=":" styleClass="lblcamporequerido10"/>
            <h:inputText value="#{registroAdmPerfil.funRemValMin}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>
            <h:inputText value="#{registroAdmPerfil.funRemValMax}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>

            <h:outputText value="Bloqueo" styleClass="lblcampotitulo8"/>
            <h:outputText value=":" styleClass="lblcamporequerido10"/>
            <h:inputText value="#{registroAdmPerfil.funBloValMin}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>
            <h:inputText value="#{registroAdmPerfil.funBloValMax}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>

            <h:panelGrid width="80"></h:panelGrid>
            <h:panelGrid width="20"></h:panelGrid>
            <h:panelGrid width="80"></h:panelGrid>
        </h:panelGrid>

        <h:outputText value="" styleClass="lblcampotitulo8"/>
        <h:outputText value="" styleClass="lblcamporequerido10"/>
        <h:outputText value="" styleClass="lblcampotitulo8"/>
        <h:panelGrid width="100%"><hr color="#000033" style="color:#006"/></h:panelGrid>

        <h:outputText value="" styleClass="lblcampotitulo8"/>
        <h:outputText value="" styleClass="lblcamporequerido10"/>
        <h:outputText value="" styleClass="lblcampotitulo8"/>
        <h:panelGrid columns="4">
            <h:outputText value="Capacidades" styleClass="lblcampotitulo8"/>
            <h:outputText value="" styleClass="lblcamporequerido10"/>
            <h:outputText value="Valor Mínimo" styleClass="lblcampotitulo8"/>
            <h:outputText value="Valor Máximo" styleClass="lblcampotitulo8"/>

            <h:outputText value="Salto Ataque" styleClass="lblcampotitulo8"/>
            <h:outputText value=":" styleClass="lblcamporequerido10"/>
            <h:inputText value="#{registroAdmPerfil.capAtaValMin}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>
            <h:inputText value="#{registroAdmPerfil.capAtaValMax}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>

            <h:outputText value="Salto Bloqueo" styleClass="lblcampotitulo8"/>
            <h:outputText value=":" styleClass="lblcamporequerido10"/>
            <h:inputText value="#{registroAdmPerfil.capBloValMin}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>
            <h:inputText value="#{registroAdmPerfil.capBloValMax}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>

            <h:outputText value="Velocidad" styleClass="lblcampotitulo8"/>
            <h:outputText value=":" styleClass="lblcamporequerido10"/>
            <h:inputText value="#{registroAdmPerfil.capVelValMin}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>
            <h:inputText value="#{registroAdmPerfil.capVelValMax}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>

            <h:outputText value="Presición" styleClass="lblcampotitulo8"/>
            <h:outputText value=":" styleClass="lblcamporequerido10"/>
            <h:inputText value="#{registroAdmPerfil.capPreValMin}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>
            <h:inputText value="#{registroAdmPerfil.capPreValMax}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>

            <h:outputText value="Reacción" styleClass="lblcampotitulo8"/>
            <h:outputText value=":" styleClass="lblcamporequerido10"/>
            <h:inputText value="#{registroAdmPerfil.capReaValMin}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>
            <h:inputText value="#{registroAdmPerfil.capReaValMax}" size="10" maxlength="7" style="text-align:right;" styleClass="txtcontrol8"/>

            <h:panelGrid width="80"></h:panelGrid>
            <h:panelGrid width="20"></h:panelGrid>
            <h:panelGrid width="80"></h:panelGrid>
        </h:panelGrid>

        <h:panelGrid width="120"></h:panelGrid>
        <h:panelGrid width="20"></h:panelGrid>
        <h:panelGrid width="10"></h:panelGrid>
    </h:panelGrid>
</h:panelGrid>

<h:panelGrid width="100%">
    <hr color="#000033" style="color:#006"/>
</h:panelGrid>

<h:panelGrid columns="4" width="100%" style="text-align:center;">
    <h:panelGrid width="100"></h:panelGrid>
    <a4j:commandButton value="Guardar" actionListener="#{registroAdmPerfil.guardar}" reRender="panPrincipal" styleClass="btncontrol120"/>
    <h:commandButton value="Salir" action="#{registroAdmPerfil.salir}" styleClass="btncontrol120"/>
    <h:panelGrid width="100"></h:panelGrid>
</h:panelGrid>
</h:form>
</td>
</tr>
</table>
</body>
</html>
</f:view>